/*
 * HeartRateMonitor.h
 *
 *  Created on: 28/04/2013
 *      Author: roger
 */

#ifndef HEARTRATEMONITOR_H_
#define HEARTRATEMONITOR_H_
#include "AppRegistry.h"
#include <cassert>

//#define HEARTRATEMONITOR_DEBUG

class HeartRateMonitor : public App {
private:
	virtual void setup();
	File m_logFile;
	bool m_effects;
	long m_lastReading;

public:

	HeartRateMonitor();
	virtual void init();
	virtual void display();
	virtual const char* getName() {return PSTR("HeartRate");};
	virtual boolean touch(Point p);
	virtual void close();

	virtual ~HeartRateMonitor();
};

#endif /* HEARTRATEMONITOR_H_ */
